package annotation;

import java.lang.annotation.*;

/**
 * @since Oct 16, 2017
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@interface ParentAnnotation {
    int id() default 0;

    String name() default "default";

}

//@Target(ElementType.METHOD)
//@Retention(RetentionPolicy.RUNTIME)
//@Documented
//@Inherited
////[error]: @interface may not have extents list
////[reason]: do not support extents in annotation
//@interface SonAnnotation extends ParentAnnotation{
//}

@interface SonAnnotation {
    @ParentAnnotation()
    String son();
}
